package com.ruikc.study.demo.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import java.io.Serial;


/**
 * 商品表，用于存储商品的基本信息 实体类。
 *
 * @author zhiyuan
 * @since 2025-02-22
 */
@Table("product")
public class Product implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 商品的唯一标识符，自增主键
     */
    @Id(keyType = KeyType.Auto)
    private Integer productId;

    /**
     * 商品编号，用于唯一标识商品
     */
    private String productCode;

    /**
     * 商品名称
     */
    private String title;

    /**
     * 商品的基本单位
     */
    private String unit;

    /**
     * 商品备注信息
     */
    private String demo;

    /**
     * 商品记录的创建时间
     */
    private String createdAt;

    /**
     * 商品记录的更新时间
     */
    private String updatedAt;

    /**
     * 商品记录的删除时间，若未删除则为空
     */
    private String deletedAt;

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getDemo() {
        return demo;
    }

    public void setDemo(String demo) {
        this.demo = demo;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(String deletedAt) {
        this.deletedAt = deletedAt;
    }

}
